#ifndef LEADWIDGET_H
#define LEADWIDGET_H

#include <QWidget>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLabel>
#include <QGuiApplication>
#include <QScreen>
#include <QIcon>
#include <QDebug>
#include <QTextEdit>
#include <QString>
#include <QGSettings>
#include "utils/xatom-helper.h"
#include "global/global.h"
#include "utils/desktopinfo.h"

class LeadWidget : public QWidget
{
    Q_OBJECT
public:
    explicit LeadWidget(QWidget *parent = nullptr);
    ~LeadWidget();

signals:
    void setFontSizeSignal(int); //字体变化

private:
    //主题和字体变化
    void initGsetting();
    void changeStyle();
    void setFont();

    QWidget *m_text;
    QLabel *label1;
    QLabel *label2;
    QLabel *label3;
    QLabel *label4;

    QGSettings *m_styleSettings = nullptr;
    DesktopInfo m_info;
};

#endif // LEADWIDGET_H
